const API = require('./base')

/**
 * 获取网站轮播图
 * 
 */

export function getMessage(args) {
  return API.get('/wp-json/mp/v2/message', args, {
    token: true
  });
}

export function getMessageslist  (args){
  return API.get('/wp-json/mp/v2/message/comments',args,{
    token:true,
  })
}


export function  getPrivateMessage(args){
  return API.get('/wp-json/mp/v2/message/private', args, {
    token: true
  });
}

export function  getMessagedetail(args) {
  return API.get('/wp-json/mp/v2/message/view', args, {
    token: true
  });
}

export function postMessages(args) {
  return API.post('/wp-json/mp/v2/message', args, {
    token: true
  });
}